package com.bsdsma.visonManagementSystemapp.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.bsdsma.visonManagementSystemapp.dto.*;
import com.bsdsma.visonManagementSystemapp.entity.Admin;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface AdminService {
    PageRetDto<Admin> search(UserSearchDto dto);
    List<Admin> listAll();
    ListAllRetDto<Admin> listAllWithRet();
    Admin add(UserAddDto dto);
    Admin update(Long id, UserAddDto dto);
    Admin getById(Long id);
    void delete(Long id);
    int updateById(Admin entity);
    Long count();
    List<DataGroupByDateDto> countByDay(Date beginDate, Date endDate);
    Admin getByAccount(String account);
    Admin getByCellphoneNumber(String cellphoneNumber);
    Admin findByGonghaoAndStatus(Long gonghao, int status);
    Admin getByGonghaoAndStatus(Admin admin);
    List<Admin> list(QueryWrapper<Admin> wrapper);
    Map<String, Object> bulkImport(List<UserAddDto> userList);
} 